package edu.sctu.alex.projectPratice.text20150628v2.programUtil;

/**
 * Created by alex on 2015/6/28.
 */
public class Thread implements Runnable {
    /**
     *
     *线程计时
     */
    @Override
    public void run() {
        System.out.println("5秒钟后开始获取JSON数据");

        for (int i = 0; i <5 ; i++) {
            System.out.println("还剩"+(5-i)+"秒");
            try {
                java.lang.Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("开始获取！");
    }
}
